<?php

namespace App\Kuafu\CouponExt\Channel;


interface CouponExtInterface
{
    /**
     * 验券准备
     *
     * @param string $couponCode
     * @return array
     */
    public function couponPrepare(string $couponCode): array;

    /**
     * 验券券
     *
     * @param string|array $couponCode [单张|多张]
     * @param int $count [数量]
     * @param string $orderId 订单号
     * @return array
     */
    public function couponConsume($couponCode, int $count, string $orderId): array;


    /**
     * 撤销券
     *
     * @param array $couponInfo
     * @return array
     */
    public function couponCancel(array $couponInfo): array;

}
